package com.tensquare.search.dao;

import com.tensquare.search.dao.pojo.Article;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

public interface ArticleESRepository  extends ElasticsearchRepository<Article, String> {

    /**
     * 根据关键词，查询对象（分页）
     */
    public Page<Article> findByTitleLikeOrContentLike(String title, String content, Pageable pageable);
}
